#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time       :   11:41
# Author     : Y4
# Site       : 
# File       : 07 字符串-3种分割方式.py
# Software   : PyCharm
'''
split("分隔符",分割次数)   默认是用空格 \n \r \t 来分割
splitlines("分隔符",分割次数)   默认是用 \r \n \r\n来分割
partition("元组","分隔符","元组")  通过分隔符分割成三个元素的元组
'''

msg = 'Audreyparcaarfiiolebadaneagra'
print(msg.partition("o"))       # (' Audreyparcaarfii', 'o', 'lebadaneagra')